package models

import (
	"time"
)

type Project struct {
	Id             string `orm:"pk"`
	Name           string
	Description    string
	Deleted        int32  `orm:"column(deleted)"`
	WorkingVersion string `orm:"column(working_version)"`

	CreateTime     time.Time `orm:"column(create_time);type(datetime)"`
	CreateBy       string    `orm:"column(create_by)"`
	LastUpdateBy   string    `orm:"column(last_update_by)"`
	LastUpdateTime time.Time `orm:"column(last_update_time);type(datetime)"`

	ProjectVersions []*ProjectVersion `orm:"reverse(many)"` // fk 的反向关系
}
